//============================================================================
//	警告: 这个文件是使用2009-8-28 17:56:54建立的IBatisNetGen.DaoImpl.cst生成的.
//				重新生成时,原先手动做的修改将会丢失.
//============================================================================
using System;
using System.Collections.Generic;
using System.Text;
using IBatisNet.DataMapper;
using Bino.ExamOnline.Components.Entitys;
using Bino.ExamOnline.Components.Interface;
using CMail.Common.TextLib;

namespace Bino.ExamOnline.DataProvider 
{	
    /// <summary>实现<see cref="IExamConfigDao"/>接口.</summary>
    public class ExamConfigDataProvider : IExamConfigDao 
	{
		/// <summary>实现 <see cref="IExamConfigDao.GetExamConfigsCount"/></summary>
		public int GetExamConfigsCount() {
			string statementId = "ExamConfig.GetExamConfigsCount";
			int result = ExecuteQueryForObject<int>(statementId, null);
			return result;
		}

		/// <summary>实现 <see cref="IExamConfigDao.GetExamConfig"/></summary>
		public ExamConfig GetExamConfig(Int32 examID) 
		{
			string statementId = "ExamConfig.GetExamConfig";
			ExamConfig result = ExecuteQueryForObject<ExamConfig>(statementId, examID);
			return result;
		}


		/// <summary>实现 <see cref="IExamConfigDao.GetAllExamConfigs"/></summary>
		public IList<ExamConfig> GetAllExamConfigs() 
		{
			string statementId = "ExamConfig.GetAllExamConfigs";
			IList<ExamConfig> results = ExecuteQueryForList<ExamConfig>(statementId, null);
			return results;
		}

		/// <summary>实现 <see cref="IExamConfigDao.GetAllExamConfigsWithOutLob"/></summary>
		public IList<ExamConfig> GetAllExamConfigsWithOutLob()
		{
			string statementId = "ExamConfig.GetAllExamConfigsWithOutLob";
			IList<ExamConfig> results = ExecuteQueryForList<ExamConfig>(statementId, null);
			return results;
		}
	
		/// <summary>实现 <see cref="IExamConfigDao.CreateExamConfig"/></summary>
		public void CreateExamConfig(ExamConfig obj)
		{
			if (obj == null) 
				return;
			string statementId = "ExamConfig.CreateExamConfig";
			ExecuteInsert(statementId, obj);
		}

		/// <summary>实现 <see cref="IExamConfigDao.UpdateExamConfig"/></summary>
		public void UpdateExamConfig(ExamConfig obj) 
		{
			if (obj == null) 
				return;
			string statementId = "ExamConfig.UpdateExamConfig";
			ExecuteUpdate(statementId, obj);
		}

		/// <summary>实现 <see cref="IExamConfigDao.DeleteExamConfig"/></summary>
		public void DeleteExamConfig(ExamConfig obj) 
		{
			if (obj == null)
				return;
			string statementId = "ExamConfig.DeleteExamConfig";
			ExecuteDelete(statementId, obj);
		}

		/// <summary>实现 <see cref="IExamConfigDao.DeleteExamConfigByExamID"/></summary>
		public int DeleteExamConfigByExamID(Int32 examID) 
		{
			string statementId = "ExamConfig.DeleteExamConfigByExamID";
			int result = ExecuteDelete(statementId, examID);
			return result;
		}		

		/// <summary>实现 <see cref="IExamConfigDao.ReloadExamConfig"/></summary>
		public void ReloadExamConfig(ExamConfig obj) 
		{
			if (obj == null) 
				return;
			string statementId = "ExamConfig.GetExamConfig";
			ExecuteQueryForObject<ExamConfig>(statementId, obj, obj);
		}		

	}
}
